package main

import "logger-test/logger"

func init() {
    var logFile = "/dev/stdout"
    var logSaveDays	=	3

    // 日志初始化
    logger.Config(logFile, logger.InfoLevel)
    logger.SetSaveMode(logger.BySize)
    logger.SetSaveDays(logSaveDays)
    logger.Infof("loginit success ! \n")
}

func main() {

    logger.Debugf("hello world! \n")
    logger.Infof("main start: \n")
    logger.Warnf("is warning\n")
    logger.Errorf("-- %s\n", "hello world!")
}